/**********************************************************************
 *@Project： CloudTest
 *@File: IDictService
 *@Date: 2017/3/3
 *@Copyright (C) 2013-2017 http://www.posun.cn. All Rights Reserved.
 ***********************************************************************
 *注意： 本内容仅限于深圳市普盛实业有限公司内部使用，禁止外泄
 **********************************************************************
 */
package com.posun.edu.system.service;

import com.posun.edu.system.entity.Dict;
import com.posun.framework.base.IBaseService;
import com.posun.framework.dto.DataSourceResult;
import com.posun.framework.orm.domain.Searchable;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

/**
 * <p>
 * TODO<br>
 *
 * @author YL
 * @version 1.0
 * @createTime 2017/3/3 15:59
 * @ChangeLog
 */
public interface IDictService extends IBaseService<Dict, String> {

    Dict batchSave(Dict dict);

    @Cacheable()
    List<Dict> findAll(Searchable<Dict> searchable);

    DataSourceResult<Dict> selectResult(Searchable<Dict> searchable);
}
